<template>
  <div class="charge-wrapper">
    <div class="charge-icon">
      <van-icon name="setting-o" />
    </div>
    <div class="charge-content">{{ text }}</div>
    <div class="charge-btns">
      <van-button type="info" plain @click="$emit('yes')">Yes</van-button>
      <van-button @click="$emit('no')">No</van-button>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    text: {
      type: String,
      default: ''
    }
  },

  methods: {}
}
</script>

<style lang="scss" scopd>
.charge-wrapper {
  padding: 10px 30px;
  color: #333;
  text-align: center;

  .charge-icon {
    font-size: 40px;
    margin: 10px 0;
  }

  .charge-content {
    color: #333;
    font-size: 36px;
    font-weight: 200;
    text-align: left;
  }

  .charge-btns {
    display: flex;
    padding: 15px 30px;
    justify-content: space-between;

    button {
      min-width: 100px;
    }
  }
}
</style>
